package com.novellotus.iov.carvice.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Rich on 2018/2/1.
 */

public class FailureBeen implements Parcelable {

    /**
     * id : AYxZgPKwW5VNggeRCik5yU
     * pn :
     * linkman :
     * mobile :
     * remark :
     * lat : 30.538353
     * lng : 104.061784
     * address :
     * reportTime : 1517458935000
     * dealTime :
     * dealDesc :
     * dealer :
     */

    private String id;
    private String pn;
    private String linkman;
    private String mobile;
    private String remark;
    private double lat;
    private double lng;
    private String address;
    private long reportTime;
    private String dealTime;
    private String dealDesc;
    private String dealer;
    private String status;

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPn() {
        return pn;
    }

    public void setPn(String pn) {
        this.pn = pn;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public long getReportTime() {
        return reportTime;
    }

    public void setReportTime(long reportTime) {
        this.reportTime = reportTime;
    }

    public String getDealTime() {
        return dealTime;
    }

    public void setDealTime(String dealTime) {
        this.dealTime = dealTime;
    }

    public String getDealDesc() {
        return dealDesc;
    }

    public void setDealDesc(String dealDesc) {
        this.dealDesc = dealDesc;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.pn);
        dest.writeString(this.linkman);
        dest.writeString(this.mobile);
        dest.writeString(this.remark);
        dest.writeDouble(this.lat);
        dest.writeDouble(this.lng);
        dest.writeString(this.address);
        dest.writeLong(this.reportTime);
        dest.writeString(this.dealTime);
        dest.writeString(this.dealDesc);
        dest.writeString(this.dealer);
        dest.writeString(this.status);
    }

    public FailureBeen() {
    }

    protected FailureBeen(Parcel in) {
        this.id = in.readString();
        this.pn = in.readString();
        this.linkman = in.readString();
        this.mobile = in.readString();
        this.remark = in.readString();
        this.lat = in.readDouble();
        this.lng = in.readDouble();
        this.address = in.readString();
        this.reportTime = in.readLong();
        this.dealTime = in.readString();
        this.dealDesc = in.readString();
        this.dealer = in.readString();
        this.status = in.readString();
    }

    public static final Parcelable.Creator<FailureBeen> CREATOR = new Parcelable.Creator<FailureBeen>() {
        @Override
        public FailureBeen createFromParcel(Parcel source) {
            return new FailureBeen(source);
        }

        @Override
        public FailureBeen[] newArray(int size) {
            return new FailureBeen[size];
        }
    };
}
